// JavaScript Document

jQuery(document).ready(function() {   
    
});

var tnportal_latestsite = window.location.hostname;
	var tnpath,ajaz_tnpath;
	 if(tnportal_latestsite=="192.168.44.134"){
		  tnpath = "http://cms.tn.gov.in/";
	 }
	 if(tnportal_latestsite=="10.163.14.150"){
		  tnpath = "https://10.163.14.150/tnportal_latest/";
	 }
	 if(tnportal_latestsite=="164.100.167.197"){
		  tnpath = "https://164.100.167.197/tnportal_latest/";
	 }	
	 if(tnportal_latestsite=="192.168.44.134"){
		  tnpath = "http://cms.tn.gov.in/";
		 
	 }
	 if(tnportal_latestsite=="tnportal.gov.in"){
		  tnpath = "https://tnportal.gov.in/";
		
	 }
function schemesearch(){
	var dep=jQuery('#edit-scheme-name').val();
	var lang = jQuery('html').attr('lang');
	if (lang == 'en'){
		jQuery.ajax({
			url:  '../searchInfo1.php',
			type: 'POST',
			//datatype: 'json',
			data: {
				addr: dep,
				lang:lang,
				process:'get-desearch',
			},		
			success:function(data){
				jQuery(".result_out").html(data);
			}
		});
	}else if (lang == 'ta') {
		jQuery.ajax({
			url: '../../searchInfo1.php',
			type: 'POST',
			//datatype: 'json',
			data: {
				addr: dep, 
				lang:lang,
				process:'get-desearch',
			},		
			success:function(data){
				jQuery(".result_out").html(data);
			}
		});
	}
}//jQuery.noConflict();
								
	//$(".page-scheme ul.pagination").css("display","none");

